/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.qdu.service.impl;

import com.qdu.dao.ReplyDao;
import com.qdu.dao.impl.ReplyDaoImpl;
import com.qdu.entity.Reply;
import com.qdu.service.ReplyService;
import java.util.List;

/**
 *
 * @author Ice
 */
public class ReplyServiceImpl implements ReplyService{

    ReplyDao replydao=new ReplyDaoImpl();
    
    @Override
    public int addNewReply(Reply r) {
        return replydao.addReply(r);
    }

    @Override
    public int deleteExistReply(Reply r) {
        return replydao.deleteReply(r);
    }

    @Override
    public List<Object[]> findReplyListByCid(int cid) {
        return replydao.getReplyListByCid(cid);
    }
    
}
